﻿using System.ComponentModel.DataAnnotations;
using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace Models
{
    ///<summary>
    ///
    ///</summary>
    [Tenant("TEXT")]
    [SugarTable("datemtl","TEXT")]
    public class Datemtl
    {
           public Datemtl() { }

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(255, ErrorMessage ="Company长度255" )]
           public string Company {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(255, ErrorMessage ="ParentPart长度255" )]
           public string Parentpart {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(255, ErrorMessage ="ParentRev长度255" )]
           public string Parentrev {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(53, ErrorMessage ="Mtl长度53" )]
           public double? Mtl {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(255, ErrorMessage ="MaterialPart长度255" )]
           public string Materialpart {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(53, ErrorMessage ="Qty/Parent长度53" )]
           public double? QtyParent { get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(53, ErrorMessage ="RelOpr长度53" )]
           public double? Relopr {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(53, ErrorMessage ="Scrap长度53" )]
           public double? Scrap {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="PullasAssembly必填" )]
           [StringLength(1, ErrorMessage ="PullasAssembly长度1" )]
           public bool Pullasassembly {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="ViewasAssembly必填" )]
           [StringLength(1, ErrorMessage ="ViewasAssembly长度1" )]
           public bool Viewasassembly {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(255, ErrorMessage ="GroupID长度255" )]
           public string Groupid {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(53, ErrorMessage ="Mtl1长度53" )]
           public double? Mtl1 {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(255, ErrorMessage ="AnalysisCode长度255" )]
           public string Analysiscode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(255, ErrorMessage ="UOMCode长度255" )]
           public string Uomcode {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:True
           /// </summary>           
           [StringLength(255, ErrorMessage ="PNGroup_c长度255" )]
           public string Pngroup_C {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [Required(ErrorMessage ="MainPN_c必填" )]
           [StringLength(1, ErrorMessage ="MainPN_c长度1" )]
           public bool Mainpn_C {get;set;}

    }
}
